package app.server.project.main.service.dto.upay.tron;

import cn.hutool.core.annotation.Alias;
import lombok.Data;

import java.util.List;

@Data
public class USDTransactionDto {
    private List<USDTransactionRet> ret;

    private String txID;

    @Alias("raw_data")
    private USDRawData rawData;

    public boolean isSuccess() {
        if (ret == null) return false;
        for (USDTransactionRet item : ret) {
            if (item.isSuccess()) return true;
        }
        return false;
    }
}
